package com.hengby.hengcrud.modular.sys.mapper;

import com.hengby.hengcrud.core.node.MenuNode;
import com.hengby.hengcrud.modular.base.SuperMapper;
import com.hengby.hengcrud.modular.sys.model.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhouheng
 */
public interface MenuMapper extends SuperMapper<Menu> {

    /**
     * <根据角色Id获取菜单>
     * @param roles
     * @return
     */
    public List<MenuNode> getMenusByRoleIds(List<Integer> roles);

    /**
     * @description: 获取资源url通过角色id
     * @date: 2018/7/7 0:06
     * @author:zhouheng
     */
    List<String> getResUrlsByRoleId(Integer roleId);
}
